package com.tanhua.dubbo.server.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum OperatingEnum implements IEnum<Integer> {


    DELETE(1,"删除内容"),
    PASS(2,"审核通过"),
    FAIL(3,"审核不通过");


    private int value;
    private String desc;

    OperatingEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return this.desc;
    }


    /*public static String getOperatingByValue(int code) {
        String sex = "未知";
        for (SexEnum sexEnum : values()) {
            if (sexEnum.value == code) {
                sex = sexEnum.desc;
            }
        }
        return sex;
    }*/
}
